package com.ccit.equip.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ccit.model.Overhaul;
import org.apache.ibatis.annotations.Select;
import com.ccit.model.vo.Overhaul.OverhaulVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

import java.sql.Wrapper;

@Repository
public interface OverhaulMapper extends BaseMapper<Overhaul>{

    List<Overhaul> listAllOverhaulRecord();

    List<Overhaul> getByDynamic();

    @Select("id" +
            "time" +
            "employee_id" +
            "name" +
            "type" +
            "From  employee c , overhaul s" +
            "${ew.overhaulSqlSegment}")
    IPage<OverhaulVo> findEmployee(IPage<OverhaulVo> page, @Param("ew") Wrapper wrapper);
}
